# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=exfatprogs
# NOTE: keep in testing until kernel in main is upgraded to 5.7 and up
pkgver=1.0.4
pkgrel=0
pkgdesc="exfat filesystem userspace tools, mkfs and fsck"
url="https://github.com/exfatprogs/exfatprogs"
arch="all"
license="GPL-2.0-or-later"
makedepends="autoconf libtool automake linux-headers"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/exfatprogs/exfatprogs/archive/$pkgver.tar.gz"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		-libdir=/usr/lib \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="6d01ecc8e70994c1a3e0cedb6dd99d4bd2b50e8e32bc5ca973e302c502001cd5380b7e6c9d62c2f48d9dbac8a641cc23c4f9fc018f8dc6090e762fea785a266d  exfatprogs-1.0.4.tar.gz"
